import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import { resolve } from 'path'

export default async () => {
  const UnoCSS = (await import('unocss/vite')).default
  return defineConfig({
    base: './',
    plugins: [
      uni(),
      UnoCSS()
    ],
    resolve: {
      alias: {
        '@': resolve(__dirname, 'src'),
      }
    }
  })
}
